package com.ax.business.common.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class DocConfig {
    /**
     * 业务编码
     */
    private String businessCode;

    /**
     * 状态
     */
    private Integer flag;

    /**
     * 业务类型
     */
    private String businessType;

    /**
     * 前缀
     */
    private String prefix;

    /**
     * 当前时间
     */
    private Date sysDatatime;

    /**
     * 当前序号
     */
    private Integer curNo;

    /**
     * 序号长度
     */
    private Integer curNoLength;

    public DocConfig(String businessCode, Integer flag, String businessType, String prefix, Date sysDatatime, Integer curNo, Integer curNoLength) {
        this.businessCode = businessCode;
        this.flag = flag;
        this.businessType = businessType;
        this.prefix = prefix;
        this.sysDatatime = sysDatatime;
        this.curNo = curNo;
        this.curNoLength = curNoLength;
    }

    public DocConfig() {
        super();
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode == null ? null : businessCode.trim();
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType == null ? null : businessType.trim();
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix == null ? null : prefix.trim();
    }

    public Date getSysDatatime() {
        return sysDatatime;
    }

    public void setSysDatatime(Date sysDatatime) {
        this.sysDatatime = sysDatatime;
    }

    public Integer getCurNo() {
        return curNo;
    }

    public void setCurNo(Integer curNo) {
        this.curNo = curNo;
    }

    public Integer getCurNoLength() {
        return curNoLength;
    }

    public void setCurNoLength(Integer curNoLength) {
        this.curNoLength = curNoLength;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}